package com.csw.mybatisSpringboot.config.result;


public enum ResultInfoEnum {
    OK(10000, "成功"),

    ERROR(10001, "失败"),

    LOGINERROR(10002, "登录失败"),

    ACCESSERROR(10003, "权限不足");


    private Integer code;// 返回码

    private String msg;// 返回信息


    ResultInfoEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
